package com.ruoyi.project.websiteContent.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 新闻具体内容对象 website_content   (评审修改)
 *
 *     按照评审标准来进行修改网站首页的内容，以便配置
 * @author lvyongwei
 * @date 2020-07-23
 */
@Alias("WebsiteContent")
public class WebsiteContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻内容id */
    private Long contentId;

    /** 新闻名称 */
    @Excel(name = "新闻名称")
    private String contentName;

    /** 新闻主体 */
    @Excel(name = "新闻主体")
    private String contentSubject;

    /** 对应主页标题 */
    //@Excel(name = "对应主页标题")
    private Long websiteId;

    /**
     * 对应标题名称
     */
    @Excel(name = "对应主页标题")
    private String websiteTitleName;

    /**
     * 对应父级标题名称
     */
    private String parentTitleName;

    /**
     * 上传附件地址和名称
     * @param contentId
     */
    private String accessorys;

    /**
     * 发布日期
     */
    private Date createTime;

    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setContentName(String contentName) 
    {
        this.contentName = contentName;
    }

    public String getContentName() 
    {
        return contentName;
    }
    public void setContentSubject(String contentSubject) 
    {
        this.contentSubject = contentSubject;
    }

    public String getContentSubject() 
    {
        return contentSubject;
    }
    public void setWebsiteId(Long websiteId) 
    {
        this.websiteId = websiteId;
    }

    public Long getWebsiteId() 
    {
        return websiteId;
    }

    public String getWebsiteTitleName() {
        return websiteTitleName;
    }

    public void setWebsiteTitleName(String websiteTitleName) {
        this.websiteTitleName = websiteTitleName;
    }

    public String getParentTitleName() {
        return parentTitleName;
    }

    public void setParentTitleName(String parentTitleName) {
        this.parentTitleName = parentTitleName;
    }

    public String getAccessorys() {
        return accessorys;
    }

    public void setAccessorys(String accessorys) {
        this.accessorys = accessorys;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "WebsiteContent{" +
                "contentId=" + contentId +
                ", contentName='" + contentName + '\'' +
                ", contentSubject='" + contentSubject + '\'' +
                ", websiteId=" + websiteId +
                ", websiteTitleName='" + websiteTitleName + '\'' +
                ", parentTitleName='" + parentTitleName + '\'' +
                '}';
    }
}
